﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class PurchaseReceiptDto
    {
        /// <summary>
        /// 收货单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        public string PompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string PompanyName { get; set; }

        /// <summary>
        /// 订单类型
        /// </summary>
        public int BillType { get; set; }

        /// <summary>
        /// 移动类型
        /// </summary>
        public int MoveType { get; set; }

        /// <summary>
        /// 源单号（采购订单号）
        /// </summary>
        public string PurOrderLineNo { get; set; }

        /// <summary>
        /// 凭证日期
        /// </summary>
        public DateTime DocumentDate { get; set; }

        /// <summary>
        /// 供应商编码
        /// </summary>
        public string SupplierCode { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set;}

        /// <summary>
        /// 明细数据
        /// </summary>
        public List<PurchaseReceiptOrderDetailDto> ChildList { get; set; }
    }


    public class PurchaseReceiptOrderDetailDto
    {
        /// <summary>
        /// 行项目
        /// </summary>
        public int IineItem { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string TMaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string TMaterialName { get; set;}

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ModelSpec { get; set; }

        /// <summary>
        /// 预计到货数量
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 预计到货日期
        /// </summary>
        public DateTime ExpectedTime { get; set; }

        /// <summary>
        /// 采购单位名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 采购单位编码
        /// </summary>
        public string CustomerCode { get; set; }

        /// <summary>
        /// 库存单位名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 库存单位编码
        /// </summary>
        public string SupplierCode { get; set;}

        /// <summary>
        /// 工厂编码
        /// </summary>
        public string FactoryCode { get; set; }

        /// <summary>
        /// 工厂名称
        /// </summary>
        public string FactoryName { get; set; }

    }

}
